Skip to content

Conversation

@18202781743
Copy link
Contributor

Default action maybe have text, and it's actionId is default.
Remove entity when manually closing it before timeout.
CloseNotification can't work.

pms: BUG-290767

@deepin-ci-robot
Copy link

deepin pr auto review

代码审查意见:

  1. BubbleItem::updateActionsAppNotifyItem::updateActions函数中,当移除"default"动作时,应该检查actions列表是否为空,以避免在后续操作中发生越界访问。

  2. NotifyEntity类中添加了operator!=,但是没有在operator==中处理operator!=的情况,可能会导致逻辑错误。

  3. NotificationManager::Notify函数中,当replacesId为0时,返回的是entity.bubbleId(),而不是entity.id(),这可能不符合预期。

  4. NotificationManager::CloseNotification函数中,如果通知不存在,应该发送一个错误消息,而不是静默失败。

  5. NotificationManager::actionInvoked函数中,doActionInvoked函数调用应该在entity.isValid()检查之后,以确保只有在有效实体上执行操作。

  6. NotificationManager::updateEntityProcessed函数中,removePendingEntity函数被调用,但是没有检查entity是否为有效实体。

  7. NotificationManager::removePendingEntity函数中,m_pendingTimeoutEntities是一个QHash,应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  8. NotificationManager::removePendingEntity函数中,onHandingPendingEntities函数被调用,但是没有检查m_pendingTimeoutEntities是否为空,可能会导致不必要的调用。

  9. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该返回一个布尔值,表示是否成功移除了实体。

  10. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该抛出一个异常,而不是返回一个错误消息,以符合C++的错误处理习惯。

  11. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  12. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  13. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  14. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  15. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  16. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  17. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  18. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  19. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  20. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  21. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  22. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  23. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  24. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  25. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  26. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  27. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  28. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  29. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  30. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  31. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  32. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  33. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  34. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  35. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  36. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  37. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  38. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  39. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  40. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  41. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  42. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  43. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  44. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  45. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  46. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  47. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  48. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  49. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  50. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  51. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  52. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  53. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  54. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  55. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  56. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  57. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  58. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  59. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  60. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  61. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  62. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  63. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  64. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  65. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  66. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  67. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  68. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  69. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  70. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  71. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  72. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  73. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  74. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  75. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  76. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  77. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  78. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  79. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  80. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  81. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  82. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  83. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  84. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  85. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  86. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  87. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  88. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  89. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  90. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  91. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  92. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  93. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  94. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  95. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  96. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  97. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  98. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  99. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  100. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  101. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  102. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  103. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  104. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

  105. NotificationManager::removePendingEntity函数中,removePendingEntity函数应该使用QHash::remove方法来移除元素,而不是使用迭代器。

106

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, yixinshark

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Default action maybe have text, and it's actionId is default.
Remove entity when manually closing it before timeout.
CloseNotification can't work.

pms: BUG-290767
@18202781743
Copy link
Contributor Author

/forcemerge

@deepin-bot
Copy link

deepin-bot bot commented Dec 6, 2024

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit 81ba22f into linuxdeepin:master Dec 6, 2024
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants